package com.huage.courseplatform.application.model.param;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(value="审核通用参数",description="审核通用参数")
public class AuditPARAM implements Serializable {
    private static final long serialVersionUID = 1L;

    @NotEmpty
    @ApiModelProperty(value = "流程Id",required = true)
    private String flowId;

    @NotNull(message = "是否通过不能为空")
    @ApiModelProperty(value = "是否通过:不通过:0,通过:1",required = true)
    private Integer isPass;

    @ApiModelProperty(value = "审核意见(不通过的时候为必填)")
    private String comment;
}
